<div class="bjui-pageHeader">
        <button type="button" class="btn  btn-default" data-toggle="dialog" data-id="Site-addlinkShow" data-url="{:U('Site/addlinkShow')}" data-title="添加链接" data-icon="plus" data-width="600" data-height="400">添加链接</button>
</div>

<div class="bjui-pageContent">
    <form action="{:U('Site/showFlink')}" method="post" novalidate="novalidate" data-toggle="ajaxsearch" id="pagerForm">
        <input type="hidden" value="15" name="pageSize">
        <input type="hidden" value="{$nowPage}" name="pageCurrent">
        <input type="hidden" value="id" name="orderField">
        <input type="hidden" value="desc" name="orderDirection">
        <table class="table table-bordered table-hover table-striped table-top" >
            <thead>
            <tr>
                <th>编号</th>
                <th>网站名称</th>
                <th>图片LOGO</th>
                <th>链接位置</th>
                <th>发布时间</th>
                <th>顺序</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name='vlist' item='v'>
            <tr data-id="{$v.id}">
                <td>{$v.id}</td>
                <td><a href="{$v.url}" target="_blank">{$v.title}</a></td>
                <td><if condition="$v['logo']"><img src="{$v.logo|default_logo}" height="31"></if></td>
                <td><if condition="$v['ischeck']">内页<else/>首页</if></td>
                <td>{$v.posttime|date='Y-m-d H:i:s', ###}</td>
                <td>{$v.sort}</td>
                <td>
                    <a href="{:U('Site/linkEdit',array('id' => $v['id']))}"  data-toggle="dialog" data-id="Site-linkEdit" data-title="修改友情链接" data-width="560" data-height="400">编辑</a>
                    <a href="{:U('Site/del',array('id' => $v['id']), '')}"  data-toggle="doajax" data-confirm-msg="确定要删除吗？" data-type="get">删除</a>
                </td>
            </tr>
            </tbody>
            </foreach>
        </table>
        <div class="th" style="clear: both;"> </div>
    </form>

</div>
<div class="bjui-pageFooter">
<div class="pages">
        <span>每页&nbsp;</span>

        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="15">15</option>
                <option value="30">30</option>
                <option value="60">60</option>
                <option value="100">100</option>
            </select>
        </div>
        <span>&nbsp;条，共 {$totalRows} 条</span>
    </div>

    <div class="pagination-box" data-toggle="pagination" data-total="{$totalRows}" data-page-size="15"
         data-page-current="{$nowPage}"></div>
</div>